<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Exception: Sass::SyntaxError</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (S)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span>
     &raquo; 
    <span class="title">SyntaxError</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Exception: Sass::SyntaxError 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName">StandardError</span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next">StandardError</li>
          
            <li class="next">Sass::SyntaxError</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/error.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>An exception class that keeps track of the line of the Sass template it was raised on and the Sass file that was being parsed (if applicable).</p>

<p>All Sass errors are raised as <tt><a href="" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>s.</p>

<p>When dealing with SyntaxErrors, it&#8217;s important to provide filename and line number information. This will be used in various error reports to users, including backtraces; see <tt><a href="#sass_backtrace-instance_method" title="Sass::SyntaxError#sass_backtrace (method)">#sass_backtrace</a></tt> for details.</p>

<p>Some of this information is usually provided as part of the constructor. New backtrace entries can be added with <tt><a href="#add_backtrace-instance_method" title="Sass::SyntaxError#add_backtrace (method)">#add_backtrace</a></tt>, which is called when an exception is raised between files (e.g. with <code>@import</code>).</p>

<p>Often, a chunk of code will all have similar backtrace information - the same filename or even line. It may also be useful to have a default line number set. In those situations, the default values can be used by omitting the information on the original exception, and then calling <tt><a href="#modify_backtrace-instance_method" title="Sass::SyntaxError#modify_backtrace (method)">#modify_backtrace</a></tt> in a wrapper <code>rescue</code>. When doing this, be sure that all exceptions ultimately end up with the information filled in.</p>

  </div>
</div>
<div class="tags">
  
</div><div id="subclasses">
  <h2>Direct Known Subclasses</h2>
  <p class="children"><a href="UnitConversionError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/UnitConversionError.html" title="Sass::UnitConversionError (class)">UnitConversionError</a></p>
</div>


  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#sass_backtrace-instance_method" title="#sass_backtrace (instance method)">- (Aray&lt;{Symbol =&gt; Object&gt;}) <strong>sass_backtrace</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The backtrace of the error within Sass files.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#sass_template-instance_method" title="#sass_template (instance method)">- (String) <strong>sass_template</strong> </a>
    

    
  </span>
  
  
    
    
  
  
  
  

  
    <span class="summary_desc">The text of the template where this error was raised.</span>
  
</li>

    
  </ul>


  <h2>Class Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#exception_to_css-class_method" title="exception_to_css (class method)">+ (String) <strong>exception_to_css</strong>(e, options) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns an error report for an exception in CSS format.</span>
  
</li>

    
  </ul>

  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#add_backtrace-instance_method" title="#add_backtrace (instance method)">- <strong>add_backtrace</strong>(attrs) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Adds an entry to the exception&#8217;s Sass backtrace.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#backtrace-instance_method" title="#backtrace (instance method)">- (Array&lt;String&gt;) <strong>backtrace</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns the standard exception backtrace, including the Sass backtrace.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (SyntaxError) <strong>initialize</strong>(msg, attrs = {}) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of SyntaxError.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#modify_backtrace-instance_method" title="#modify_backtrace (instance method)">- <strong>modify_backtrace</strong>(attrs) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Modify the top Sass backtrace entries (that is, the most deeply nested ones) to have the given attributes.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#sass_backtrace_str-instance_method" title="#sass_backtrace_str (instance method)">- (String) <strong>sass_backtrace_str</strong>(default_filename = &quot;an unknown file&quot;) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns a string representation of the Sass backtrace.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#sass_filename-instance_method" title="#sass_filename (instance method)">- (String<sup>?</sup>) <strong>sass_filename</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The name of the file in which the exception was raised.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#sass_line-instance_method" title="#sass_line (instance method)">- (Fixnum) <strong>sass_line</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The line of the Sass template on which the error occurred.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#sass_mixin-instance_method" title="#sass_mixin (instance method)">- (Fixnum) <strong>sass_mixin</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The name of the mixin in which the error occurred.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_s-instance_method" title="#to_s (instance method)">- (String) <strong>to_s</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">The error message.</span>
  
</li>

    
  </ul>

  <div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::SyntaxError (class)">SyntaxError</a></tt>) <strong>initialize</strong>(msg, attrs = {}) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of SyntaxError</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>msg</span>
      
      
      
        &mdash;
        The error message
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>attrs</span>
      
      
        <em class="default">(defaults to: <tt>{}</tt>)</em>
      
      
        &mdash;
        The information in the backtrace entry. See <tt><a href="#sass_backtrace-instance_method" title="Sass::SyntaxError#sass_backtrace (method)">#sass_backtrace</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


55
56
57
58
59</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 55</span>

def initialize(msg, attrs = {})
  @message = msg
  @sass_backtrace = []
  add_backtrace(attrs)
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id="sass_backtrace=-instance_method"></span>
      <span id="sass_backtrace-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="sass_backtrace-instance_method">
  
    - (<tt>Aray&lt;{Symbol =&gt; Object&gt;}</tt>) <strong>sass_backtrace</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The backtrace of the error within Sass files. This is an array of hashes containing information for a single entry. The hashes have the following keys:</p>

<dl>
<dt><code>:filename</code></dt>

<dd>The name of the file in which the exception was raised, or <code>nil</code> if no filename is available.</dd>

<dt><code>:mixin</code></dt>

<dd>The name of the mixin in which the exception was raised, or <code>nil</code> if it wasn&#8217;t raised in a mixin.</dd>

<dt><code>:line</code></dt>

<dd>The line of the file on which the error occurred. Never nil.</dd>
</dl>

<p>This information is also included in standard backtrace format in the output of <tt><a href="#backtrace-instance_method" title="Sass::SyntaxError#backtrace (method)">#backtrace</a></tt>.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Aray&lt;{Symbol =&gt; Object&gt;}</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


45
46
47</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 45</span>

def sass_backtrace
  @sass_backtrace
end</pre>
    </td>
  </tr>
</table>
</div>
    
      
      <span id="sass_template=-instance_method"></span>
      <span id="sass_template-instance_method"></span>
      <div class="method_details ">
  <p class="signature " id="sass_template-instance_method">
  
    - (<tt>String</tt>) <strong>sass_template</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The text of the template where this error was raised.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


50
51
52</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 50</span>

def sass_template
  @sass_template
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="class_method_details" class="method_details_list">
    <h2>Class Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="exception_to_css-class_method">
  
    + (<tt>String</tt>) <strong>exception_to_css</strong>(e, options) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns an error report for an exception in CSS format.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Exception</tt>)</span>
      
      
        <span class='name'>e</span>
      
      
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>options</span>
      
      
      
        &mdash;
        The options passed to <tt><a href="Engine.html#initialize-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Engine.html#initialize-instance_method" title="Sass::Engine#initialize (method)">Sass::Engine#initialize</a></tt>
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
        &mdash;
        The error report
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt>Exception</tt>)</span>
      
      
      
      
        &mdash;
        <code>e</code>, if the <a href="file.SASS_REFERENCE.html#full_exception-option" tppabs="http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#full_exception-option" title="&lt;code&gt;:full_exception&lt;/code&gt;"><code>:full_exception</code></a> option is set to false.
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


161
162
163
164
165
166
167</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 161</span>

def exception_to_css(e, options)
  raise e unless options[:full_exception]

  header = header_string(e, options)

  "/*\n\#{header}\n\nBacktrace:\\n\#{e.backtrace.join(\"\\n\")}\n*/\nbody:before {\n  white-space: pre;\n  font-family: monospace;\n  content: \"\#{header.gsub('\"', '\\\"').gsub(\"\\n\", '\\\\A ')}\"; }\n"
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="add_backtrace-instance_method">
  
    - <strong>add_backtrace</strong>(attrs) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Adds an entry to the exception&#8217;s Sass backtrace.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>attrs</span>
      
      
      
        &mdash;
        The information in the backtrace entry. See <tt><a href="#sass_backtrace-instance_method" title="Sass::SyntaxError#sass_backtrace (method)">#sass_backtrace</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


88
89
90</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 88</span>

def add_backtrace(attrs)
  sass_backtrace << attrs.reject {|k, v| v.nil?}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="backtrace-instance_method">
  
    - (<tt>Array&lt;String&gt;</tt>) <strong>backtrace</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns the standard exception backtrace, including the Sass backtrace.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;String&gt;</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


126
127
128
129
130
131
132
133</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 126</span>

def backtrace
  return nil if super.nil?
  return super if sass_backtrace.all? {|h| h.empty?}
  sass_backtrace.map do |h|
    "#{h[:filename] || "(sass)"}:#{h[:line]}" +
      (h[:mixin] ? ":in `#{h[:mixin]}'" : "")
  end + super
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="modify_backtrace-instance_method">
  
    - <strong>modify_backtrace</strong>(attrs) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Modify the top Sass backtrace entries (that is, the most deeply nested ones) to have the given attributes.</p>

<p>Specifically, this goes through the backtrace entries from most deeply nested to least, setting the given attributes for each entry. If an entry already has one of the given attributes set, the pre-existing attribute takes precedence and is not used for less deeply-nested entries (even if they don&#8217;t have that attribute set).</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>{Symbol =&gt; Object}</tt>)</span>
      
      
        <span class='name'>attrs</span>
      
      
      
        &mdash;
        The information to add to the backtrace entry. See <tt><a href="#sass_backtrace-instance_method" title="Sass::SyntaxError#sass_backtrace (method)">#sass_backtrace</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


106
107
108
109
110
111
112
113
114
115</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 106</span>

def modify_backtrace(attrs)
  attrs = attrs.reject {|k, v| v.nil?}
  # Move backwards through the backtrace
  (0...sass_backtrace.size).to_a.reverse.each do |i|
    entry = sass_backtrace[i]
    sass_backtrace[i] = attrs.merge(entry)
    attrs.reject! {|k, v| entry.include?(k)}
    break if attrs.empty?
  end
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="sass_backtrace_str-instance_method">
  
    - (<tt>String</tt>) <strong>sass_backtrace_str</strong>(default_filename = &quot;an unknown file&quot;) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns a string representation of the Sass backtrace.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
        <span class='name'>default_filename</span>
      
      
        <em class="default">(defaults to: <tt>&quot;an unknown file&quot;</tt>)</em>
      
      
        &mdash;
        The filename to use for unknown files
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="#sass_backtrace-instance_method" title="Sass::SyntaxError#sass_backtrace (method)">#sass_backtrace</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


140
141
142
143
144
145
146
147
148
149
150</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 140</span>

def sass_backtrace_str(default_filename = "an unknown file")
  lines = self.message.split("\n")
  msg = lines[0] + lines[1..-1].
    map {|l| "\n" + (" " * "Syntax error: ".size) + l}.join
  "Syntax error: #{msg}" +
    Sass::Util.enum_with_index(sass_backtrace).map do |entry, i|
    "\n        #{i == 0 ? "on" : "from"} line #{entry[:line]}" +
      " of #{entry[:filename] || default_filename}" +
      (entry[:mixin] ? ", in `#{entry[:mixin]}'" : "")
  end.join
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="sass_filename-instance_method">
  
    - (<tt>String</tt><sup>?</sup>) <strong>sass_filename</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The name of the file in which the exception was raised. This could be <code>nil</code> if no filename is available.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


65
66
67</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 65</span>

def sass_filename
  sass_backtrace.first[:filename]
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="sass_line-instance_method">
  
    - (<tt>Fixnum</tt>) <strong>sass_line</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The line of the Sass template on which the error occurred.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


80
81
82</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 80</span>

def sass_line
  sass_backtrace.first[:line]
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="sass_mixin-instance_method">
  
    - (<tt>Fixnum</tt>) <strong>sass_mixin</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The name of the mixin in which the error occurred. This could be <code>nil</code> if the error occurred outside a mixin.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


73
74
75</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 73</span>

def sass_mixin
  sass_backtrace.first[:mixin]
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_s-instance_method">
  
    - (<tt>String</tt>) <strong>to_s</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The error message</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
        &mdash;
        The error message
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


118
119
120</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/error.rb', line 118</span>

def to_s
  @message
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:33:47 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>